package com.hwhp.entity;

import java.util.*;;

public class Menu implements java.io.Serializable {

	// Fields

	private String id="";

	private String parentid="";
	
	private String parentname="";

	private String name="";

	private String code="";
	
	private String remark="";

	private String url="";
	
	private String imageUrl="";

	private Date creatdate=new Date();
	
	private int grade=0;
	
	private int isused=1;
	
	private List<Menu> subList=new ArrayList();

	// Constructors

	/** default constructor */
	public Menu() {
	}

	/** full constructor */
	public Menu(String id, String parentid, String name, String parentname,String code,
			String remark, String url, Date creatdate,int grade,int isused) {
		this.id = id;
		this.parentid = parentid;
		this.name = name;
		this.code = code;
		this.remark = remark;
		this.url = url;
		this.creatdate = creatdate;
		this.parentname=parentname;
		this.grade=grade;
		this.isused=isused;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentid() {
		return this.parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}
	
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setCreatdate(Date creatdate) {
		this.creatdate = creatdate;
	}

	public Date getCreatdate() {
		return creatdate;
	}
	
	public void setParentname(String parentname) {
		this.parentname = parentname;
	}

	public String getParentname() {
		return parentname;
	}
	
	public void setGrade(int grade) {
		this.grade = grade;
	}

	public int getGrade() {
		return grade;
	}
    
	public void setIsused(int isused) {
		this.isused = isused;
	}

	public int getIsused() {
		return isused;
	}
	
	public void setSubList(List<Menu> subList) {
		this.subList = subList;
	}

	public List<Menu> getSubList() {
		return subList;
	}
}
